package cn.chenshiwu121.controller;

import cn.chenshiwu121.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "test")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping(value = "test")
    @ResponseBody
    public String test() {
        return "hello world";
    }

    @RequestMapping(value = "contextList")
    @ResponseBody
    public String contextList() {
        return testService.testService();
    }
}
